package com.zxw.user.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.zxw.common.core.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ec_menu")
public class Menu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("company_id")
    private Long companyId;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 图标
     */
    private String icon;

    /**
     * 组件路径
     */
    private String component;

    /**
     * 路由路径
     */
    private String path;

    /**
     * 禁用状态 0-false 禁用 1-true 启用
     */
    private Boolean state;

    /**
     * 父级id
     */
    private Long parentId;


}
